package com.charging.service;
import com.charging.entity.ChargingPile;

import java.util.List;

public interface ChargingPileService {

    List<ChargingPile> findAll();
    ChargingPile findById(Long id);
    void update(ChargingPile pile);
    void delete(Long id);
    void add(ChargingPile pile);
    /**
     * 获取地图范围内的充电桩
     */
    List<ChargingPile> getPilesInMapRange(Double minLat, Double maxLat, Double minLng, Double maxLng);

    /**
     * 获取所有充电桩的位置信息
     */
    List<ChargingPile> getAllPileLocations();
    long getTotalPileCount();

    int countAvailablePiles();

    ChargingPile getPileById(Long pileId);

    void updatePileStatus(Long pileId, String available);

    ChargingPile getMap();
}